package de.QuizCommunity.util;

import android.R;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.GridView;
import android.widget.RatingBar;
import android.widget.TextView;

public class TextViewAdapter extends BaseAdapter {
	private Context mContext;

	public TextViewAdapter(Context c) {
		mContext = c;
	}

	public int getCount() {
		return mThumbIds.length;
	}

	public Object getItem(int position) {
		return null;
	}

	public long getItemId(int position) {
		return 0;
	}

	public View getView(int position, View convertView, ViewGroup parent) {
		TextView imageView;
		if (convertView == null) { // if it's not recycled, initialize some
									// attributes
			imageView = new TextView(mContext);
			imageView.setLayoutParams(new GridView.LayoutParams(85, 85));

			imageView.setPadding(8, 8, 8, 8);
		} else {
			imageView = (TextView) convertView;
		}
		imageView.setText("Ist das ein Test?");
		imageView.setTextSize(20);
		return imageView;
	}

	private Integer[] mThumbIds = { R.drawable.star_big_on };
}